import request from '../utils/request.js'
// 搜索关键词接口
export const getSearchResultApi = ({
  keyword
}) => {
  return request({
    url: '/v1_0/suggestion',
    method: 'get',
    params: {
      q: keyword
    }
  })
}

// 搜索结果的接口
export const searchResult = ({page,per_page,q}) => {
  return request({
    url: '/v1_0/search',
    method: 'GET',
    params: {
      page,
      per_page,
      q
    },
  })
}